<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: zoud
  Date: 2016/10/24
  Time: 14:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Database Commons - Reset password</title>
</head>
<body>
<h2 class="ui header">Reset Password</h2>
<div class="ui sub-header">Modify your password.</div>
<div class="ui segment">
    <c:if test="${message == true}">
        <div class="ui message success">
            <strong>Notice, you changed your password, please use the new password when you login next time.</strong>
        </div>
    </c:if>
    <c:if test="${message == false}">
        <div class="ui message error">
            <strong>Failed, check your password!</strong>
        </div>
    </c:if>
    <div class="ui form">
        <form action="${host}/user/password/reset" method="post">
            <div class="inline field required">
                <label>Original password:</label>
                <input type="password" name="oldPassword" placeholder="Old password" />
            </div>
            <div class="inline field required">
                <label style="margin-right: 32px">New password:</label>
                <input type="password" name="newPassword" placeholder="New password" />
            </div>
            <div class="inline field required">
                <label>Confirm password:</label>
                <input type="password" name="cfPassword" placeholder="Confirm password" />
            </div>
            <div class="field">
                <input type="submit" class="ui button medium orange" value="Submit" />
            </div>
        </form>
    </div>
    <div class="ui grid">
        <div class="two wide column">

        </div>
    </div>
</div>
</body>
</html>
